package com.ruoyi.energy.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ApiModel
public class NyCheckSumVO implements Serializable {

    /** id */
    @ApiModelProperty(value = "id")
    private String id;

    /** 费用周期 */
    @JsonFormat(pattern = "yyyy-MM")
    @ApiModelProperty(value = "费用周期")
    private Date feeCycle;

    /** 仪表Id */
    @ApiModelProperty(value = "仪表Id")
    private String meterId;

    /** 仪表编码 */
    @ApiModelProperty(value = "仪表编码")
    private String meterNum;

    /** 仪表类型 */
    @ApiModelProperty(value = "仪表类型水表0,电表1,未知-1")
    private String meterType;

    /** 仪表类别(总表,私表..) */
    @ApiModelProperty(value = "仪表类别(总表0,考核表1,私表2..)")
    private String category;

    /** 分摊池初始值 */
    @ApiModelProperty(value = "分摊池初始值")
    private BigDecimal shareInitialValue;

    /** 倍率 */
//    @ApiModelProperty(value = "倍率")
//    private BigDecimal magnification;

    /** 上期读数 */
    @ApiModelProperty(value = "上期读数")
    private BigDecimal lastValue;

    /** 本期读数 */
    @ApiModelProperty(value = "本期读数")
    private BigDecimal currentValue;

    /** 实际用量 */
    @ApiModelProperty(value = "实际用量")
    private BigDecimal actualDosage;

    //园区编号
//    @ApiModelProperty(value = "园区编号")
//    private String parkNum;

    //园区id
//    @ApiModelProperty(value = "园区id")
//    private String parkId;

    @ApiModelProperty(value = "企业编号")
    private String enterpriseId;

    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    /** 汇总值 */
    @Excel(name = "汇总值")
    @ApiModelProperty(value = "汇总值")
    private BigDecimal privateSum=BigDecimal.ZERO;

    /** 差值 */
    @Excel(name = "差值")
    @ApiModelProperty(value = "差值")
    private BigDecimal diffValue=BigDecimal.ZERO;

    /** 是否累加 */
    @ApiModelProperty(value = "是否累加")
    private String isComputed = "0";

    @ApiModelProperty(value = "pid")
    private String pid;

    private List<NyCheckSumVO> children = new ArrayList<NyCheckSumVO>();
}
